import request from '@/utils/request'
import { requestYzm } from '@/utils/request'
// 获取验证码
export const getImgYzmAPI = (clientToken) => {
  return requestYzm({
    url: `/api/user-service/user/imageCode/${clientToken}`
  })
}

export const toLoginAPI = (data) => {
  return request({
    url: '/api/user-service/user/login',
    method: 'POST',
    data
  })
}

export const profilephotoAPI = (id) => {
  return request({
    url: `/api/user-service/user/${id}`

  })
}

